import { Boolean, Code, CreateDate, Desc, Entity, Jsonb, PrimaryUuid, Text, Title, UpdateDate } from "@sker/core";

@Entity({ name: 'sys_plugin' })
export class SysPlugin {

    @PrimaryUuid()
    id: string;

    @Code({ comment: '插件代号' })
    name: string;

    @Title({ comment: '插件名称' })
    title: string;

    @Desc({ comment: '插件简介' })
    desc: string;

    @Code({ comment: '作者' })
    author: string;

    @Code({ comment: '版本号' })
    version: string;

    @Text({ comment: '代码' })
    code: string;

    @Jsonb({ comment: '设置' })
    setting: any;

    @Boolean({ comment: '是否启用' })
    status: boolean;

    @CreateDate()
    create_date: Date;

    @UpdateDate()
    update_date: Date;
}